package club.banyuan.inter.Demo1;

/**
 * @author edz
 * @version 1.0
 * @date 2020/11/25 上午11:24
 */
public class Employee extends Role {
    private String name;
    private int age;
    private String sex;
    private double salary;
    private static int ID;

    public Employee() {
    }

    public Employee(String name, int age, String sex, double salary) {
        super(name, age, sex);
        this.salary = salary;
    }


    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public static int getID() {
        return ID;
    }

    public static void setID(int ID) {
        Employee.ID = ID;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                ", salary=" + salary +
                '}';
    }

    @Override
    void play() {
        System.out.println("em会玩");
    }

    final void sing (){
        System.out.println("em会唱");
    }


}
